/*
 * savejpeg.h
 *
 *  Created on: 2017年9月11日
 *      Author: niuhuan
 */

#ifndef SAVEJPEG_H_
#define SAVEJPEG_H_





#endif /* SAVEJPEG_H_ */


#include <stdlib.h>
#include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>

unsigned char* ReadJpeg(const char* path, int& width, int& height);
bool write_JPEG_file (const char * filename, unsigned char* image_buffer, int quality,int image_height, int image_width);
bool generate_image_thumbnail(const char* inputFile, const char* outputFile,int& w1,int& h1,int& quality);
